#@layout()

#define content()

<section class="content-header">

    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-6">

                <div class="row mb-2">
                    <div class="col-sm-12">
                        <h1>
                            文章访问量统计排行
                            <small data-toggle="tooltip" title="" data-placement="bottom"
                                   data-trigger="hover"><i class="nav-icon far fa-question-circle"></i></small>
                            <small> 首页 / 统计 / 文章访问量统计排行</small>
                        </h1>
                    </div>
                </div>
            </div>
        </div>

    </div><!-- /.container-fluid -->


</section>

<section class="content">

    <div class="container-fluid">
        <div class="card card-outline card-primary">

            <div class="card-body">

                <div class="row">

                    <section class="col-lg-6 connectedSortable">
                        <div class="card">
                            <div class="card-header ">
                                <h3 class="card-title">
                                    <i class="fas fa-chart-pie mr-1"></i>
                                    本周访问量排行
                                </h3>
                            </div>
                            <div class="card-body p-0">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>文章</th>
                                        <th>发布时间</th>
                                        <th>访问量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    #for(article : thisWeekArticles)
                                    <tr>
                                        <td><a href="#(article.url ??)" target="_blank"> #(article.title ??)</a></td>
                                        <td>#date(article.created ??)</td>
                                        <td>#(article.viewCount ?? 0) </td>
                                    </tr>
                                    #end
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.card-body-->
                        </div>
                        <!-- /.card -->
                    </section>



                    <section class="col-lg-6 connectedSortable">
                        <!-- Custom tabs (Charts with tabs)-->
                        <div class="card">
                            <div class="card-header">
                                <h3 class="card-title">
                                    <i class="fas fa-chart-pie mr-1"></i>
                                   本月访问量排行
                                </h3>
                            </div><!-- /.card-header -->
                            <div class="card-body p-0">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>文章</th>
                                        <th>发布时间</th>
                                        <th>访问量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    #for(article : thisMonthArticles)
                                    <tr>
                                        <td><a href="#(article.url ??)" target="_blank"> #(article.title ??)</a></td>
                                        <td>#date(article.created ??)</td>
                                        <td>#(article.viewCount ?? 0) </td>
                                    </tr>
                                    #end
                                    </tbody>
                                </table>
                            </div><!-- /.card-body -->
                        </div>
                        <!-- /.card -->

                    </section>

                    <section class="col-lg-6 connectedSortable">
                        <!-- Custom tabs (Charts with tabs)-->
                        <div class="card">
                            <div class="card-header">
                                <h3 class="card-title">
                                    <i class="fas fa-chart-pie mr-1"></i>
                                    本季度访问量排行
                                </h3>
                            </div><!-- /.card-header -->
                            <div class="card-body p-0">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>文章</th>
                                        <th>发布时间</th>
                                        <th>访问量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    #for(article : thisQuarterArticles)
                                    <tr>
                                        <td><a href="#(article.url ??)" target="_blank"> #(article.title ??)</a></td>
                                        <td>#date(article.created ??)</td>
                                        <td>#(article.viewCount ?? 0) </td>
                                    </tr>
                                    #end
                                    </tbody>
                                </table>
                            </div><!-- /.card-body -->
                        </div>
                        <!-- /.card -->

                    </section>

                    <!-- Left col -->
                    <section class="col-lg-6 connectedSortable">
                        <!-- Custom tabs (Charts with tabs)-->
                        <div class="card">
                            <div class="card-header">
                                <h3 class="card-title">
                                    <i class="fas fa-chart-pie mr-1"></i>
                                    今年访问量排行
                                </h3>
                            </div><!-- /.card-header -->
                            <div class="card-body p-0">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>文章</th>
                                        <th>发布时间</th>
                                        <th>访问量</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    #for(article : thisYearArticles)
                                    <tr>
                                        <td><a href="#(article.url ??)" target="_blank"> #(article.title ??)</a></td>
                                        <td>#date(article.created ??)</td>
                                        <td>#(article.viewCount ?? 0) </td>
                                    </tr>
                                    #end
                                    </tbody>
                                </table>
                            </div><!-- /.card-body -->
                        </div>
                        <!-- /.card -->

                    </section>
                    <!-- /.Left col -->

                </div>

            </div>
        </div>
    </div>
</section>
#end
